import React, { Component } from 'react'
// NavLink是Link的升级，多了activeClassName属性 
import { NavLink } from 'react-router-dom'
// import { withRouter } from 'react-router-dom'

export default class MyNavLink extends Component {
  render() {
    // console.log('to',this.props);
    return (
      <div>
        {/*【replace模式页面不能回退，默认是push 】  */}
        <NavLink activeClassName="song" className="list-group-item" {...this.props} />
      </div>
    )
  }
}
